﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SocketIOClient.WinRT
{
    public enum MessageWebSocketCloseCodes
    {
        ConnectionNoLongerNeeded = 1000,      // The purpose of the connection has been fulfilled and the connection is no longer needed.
        EndpointNoLongerAvailable = 1001,     // An endpoint is no longer available (such as when a server is no longer available or a browser has navigated away from a webpage).
        ProtocolErrorOccurred = 1002,         // A protocol error has occurred.
        InvalidDataType = 1003,               // The endpoint cannot receive this type of data.
        EmptyCloseFramWasReceived = 1005,     // An empty close frame was received.  Note: When code is set to 1005, 
                                              // the reason parameter must be an empty string. Setting code to 1005 
                                              // will send an empty close frame.
        InconsistentMessageDataType = 1007,   // Data within a message is not consistent with the type of the message.
        MessageViolatesEndpointPolicy = 1008, // The message violates an endpoint's policy.
        MessageTooLargeToProcess = 1009,      // The message is too large to process.
        RequiredExtensionNotSupported = 1010  // A client endpoint expected the server to negotiate one or more extensions, but the
                                              // server didn't return them in the response message of the WebSocket handshake. 
                                              // The list of extensions that are needed should appear in the reason parameter.
    }
}
